package com.slz3.business.module.wmsManagement.wmsWarehouseManage.steward;

import com.slz3.business.frame.response.RR;
import com.slz3.business.frame.response.ResInfo;
import com.slz3.business.module.wmsManagement.wmsWarehouseManage.domain.WmsWarehouseManage;
import com.slz3.business.module.wmsManagement.wmsWarehouseManage.domain.WmsWarehouseManageCondition;
import org.springframework.web.reactive.function.server.ServerRequest;
import org.springframework.web.reactive.function.server.ServerResponse;
import reactor.core.publisher.Mono;

public class WmsWarehouseManageResAtomic extends WmsWarehouseManageResExecutor {

    public Mono<ServerResponse> add_$WmsWarehouseManageUpdateLock(ServerRequest req, WmsWarehouseManage wmsWarehouseManage) {
        return WmsWarehouseManageResSafeValid.add(req, wmsWarehouseManage) ?
                RR.fail(req, ResInfo.builder().theme(RR.SAFE_VALID).build()) :
                super.add(req, wmsWarehouseManage);
    }

    public Mono<ServerResponse> delete_$WmsWarehouseManageUpdateLock(ServerRequest req, WmsWarehouseManageCondition wmsWarehouseManageCondition) {
        return WmsWarehouseManageResSafeValid.delete(req, wmsWarehouseManageCondition) ?
                RR.fail(req, ResInfo.builder().theme(RR.SAFE_VALID).build()) :
                super.delete(req);
    }

    public Mono<ServerResponse> modify_$WmsWarehouseManageUpdateLock(ServerRequest req, WmsWarehouseManage wmsWarehouseManage) {
        return WmsWarehouseManageResSafeValid.modify(req, wmsWarehouseManage) ?
                RR.fail(req, ResInfo.builder().theme(RR.SAFE_VALID).build()) :
                super.modify(req, wmsWarehouseManage);
    }

    public Mono<ServerResponse> info_$WmsWarehouseManageUpdateLock(ServerRequest req) {
        return WmsWarehouseManageResSafeValid.info(req) ?
                RR.fail(req, ResInfo.builder().theme(RR.SAFE_VALID).build()) :
                super.info(req);
    }

    public Mono<ServerResponse> auditSubmit_$WmsWarehouseManageUpdateLock(ServerRequest req, WmsWarehouseManageCondition wmsWarehouseManageCondition) {
        return WmsWarehouseManageResSafeValid.auditSubmit(req, wmsWarehouseManageCondition) ?
                RR.fail(req, ResInfo.builder().theme(RR.SAFE_VALID).build()) :
                super.auditSubmit(req);
    }

    public Mono<ServerResponse> audit_$WmsWarehouseManageUpdateLock(ServerRequest req, WmsWarehouseManageCondition wmsWarehouseManageCondition) {
        return WmsWarehouseManageResSafeValid.audit(req, wmsWarehouseManageCondition) ?
                RR.fail(req, ResInfo.builder().theme(RR.SAFE_VALID).build()) :
                super.audit(req);
    }

    public Mono<ServerResponse> auditReject_$WmsWarehouseManageUpdateLock(ServerRequest req, WmsWarehouseManageCondition wmsWarehouseManageCondition) {
        return WmsWarehouseManageResSafeValid.auditReject(req, wmsWarehouseManageCondition) ?
                RR.fail(req, ResInfo.builder().theme(RR.SAFE_VALID).build()) :
                super.auditReject(req);
    }


    public Mono<ServerResponse> usingEnable_$WmsWarehouseManageUpdateLock(ServerRequest req, WmsWarehouseManageCondition wmsWarehouseManageCondition) {
        return WmsWarehouseManageResSafeValid.usingEnable(req, wmsWarehouseManageCondition) ?
                RR.fail(req, ResInfo.builder().theme(RR.SAFE_VALID).build()) :
                super.usingEnable(req);
    }

    public Mono<ServerResponse> usingDisable_$WmsWarehouseManageUpdateLock(ServerRequest req, WmsWarehouseManageCondition wmsWarehouseManageCondition) {
        return WmsWarehouseManageResSafeValid.usingDisable(req, wmsWarehouseManageCondition) ?
                RR.fail(req, ResInfo.builder().theme(RR.SAFE_VALID).build()) :
                super.usingDisable(req);
    }
}
